package weeny.util;

import java.util.ArrayList;
import java.util.List;

import prefuse.util.ColorLib;

/**
 * Colors collected from {@link http://www.colordic.org/}
 * 
 * @author weeny
 */
public class ColorCollection {
	public static String[] strColorName = new String[]{
		//color encoding, color name
		"#ef857d", "coral red",
		"#ffedab", "sunshine yellow",
		"#a3d6cc", "ice green",
		"#8d93c8", "wistaria",
		"#e3acae", "pink almond",
		"#ea5550", "poppy red",
		"#fff3b8", "cream yellow",
		"#00947a", "turquoise green",
		"#a4a8d4", "blue lavender",
		"#e6c0c0", "rose dust",
		"#ea5550", "red",
		"#fdd35c", "naples yellow",
		"#00ac97", "sea green",
		"#4d4398", "pannsy",
		"#ffffff", "white",
		"#ea5549", "tomato red",
		"#e9bc00", "topaz",
		"#00ac9a", "peppermint green",
		"#5a4498", "violet",
		"#fafdff", "snow white",
		"#ea553a", "vermilion",
		"#fcc800", "chrome yellow",
		"#00a497", "peacock green",
		"#9079b6", "heliotrope",
		"#fef9fb", "pink white",
		"#ea5532", "scarlet",
		"#e3d7a3", "cream",
		"#2cb4ad", "nile blue",
		"#47266e", "deep royal purple",
		"#fffff9", "milky white",
		"#ed6d35", "carrot orange",
		"#ece093", "straw",
		"#418b89", "saxe blue",
		"#56256e", "grape",
		"#fff9f5", "amber white",
		"#ed6d46", "chinese red",
		"#edde7b", "jasmine yellow",
		"#3c7170", "slate green",
		"#915da3", "mauve",
		"#f7f6fb", "lavender ice",
		"#bd6856", "terracotta",
		"#c1ab05", "antique gold",
		"#006a6c", "teal green",
		"#c7a5cc", "iris",
		"#f7f6f5", "pearl white",
		"#98605e", "cocoa brown",
		"#72640c", "olive",
		"#88bfbf", "aqua green",
		"#d1bada", "lilac",
		"#f8f4e6", "ivory",
		"#6b3f31", "mahogany",
		"#665a1a", "olive drab",
		"#67b5b7", "aquamarine",
		"#cab8d9", "lavender",
		"#f5ecf4", "powder pink",
		"#6c3524", "chocolate",
		"#ffdc00", "jaune brillant",
		"#009e9f", "peacock blue",
		"#b79fcb", "crocus",
		"#efefef", "silver white",
		"#6a1917", "marron",
		"#ffdc00", "yellow",
		"#009b9f", "turquoise",
		"#a688bd", "lavender mauve",
		"#e8ece9", "frosty gray",
		"#622d18", "sepia",
		"#eddc44", "citrus",
		"#00a3a7", "capri blue",
		"#9b72b0", "purple",
		"#eeeaec", "silver pink",
		"#7b5544", "coffee",
		"#fff799", "limelight",
		"#25b7c0", "cambridge blue",
		"#7f1184", "royal purple",
		"#eee9e6", "beige cameo",
		"#8f6552", "brown",
		"#fff462", "canary yellow",
		"#00afcc", "turquoise blue",
		"#6b395f", "raisin",
		"#eee7e0", "ecru",
		"#bb5535", "burnt sienna",
		"#fff462", "mimosa",
		"#82cddd", "horizon blue",
		"#6c2463", "plum",
		"#ede4e1", "pink beige",
		"#e6bfb2", "amber rose",
		"#fff352", "lemon yellow",
		"#a1d8e2", "summer shower",
		"#841a75", "raspberry",
		"#e6eae6", "frosty white",
		"#e8d3ca", "beige rose",
		"#e0de94", "melon yellow",
		"#a1d8e6", "horizon blue",
		"#9a0d7c", "framboise",
		"#eae8e1", "oyster white",
		"#f3a68c", "salmon pink",
		"#e3e548", "chartreuse yellow",
		"#008db7", "cerulean blue",
		"#a50082", "dahlia purple",
		"#d3d6dd", "wisteria mist",
		"#e29676", "sahara",
		"#eaeea2", "lime yellow",
		"#007199", "duck blue",
		"#af0082", "orchid purple",
		"#d4d9df", "cloud",
		"#e6bfab", "ash rose",
		"#e6eb94", "lime green",
		"#006888", "marine blue",
		"#9f166a", "raspberry red",
		"#d4d9dc", "moon gray",
		"#fbdac8", "shell pink",
		"#d9e367", "chartreuse green",
		"#00608d", "madonna blue",
		"#d9aacd", "orchid",
		"#d4dcd3", "china clay",
		"#fdede4", "baby pink",
		"#d1de4c", "lettuce green",
		"#0073a8", "egyptian blue",
		"#e0b5d3", "lilla",
		"#dcd6d2", "sand beige",
		"#fce4d6", "nail pink",
		"#5f6527", "olive green",
		"#bbe2f1", "baby bule",
		"#e6afcf", "rose tendre",
		"#d3d3d8", "orchid mist",
		"#e17b34", "raw sienna",
		"#777e41", "moss green",
		"#a0d8ef", "sky blue",
		"#da81b2", "orchid pink",
		"#d4d9d6", "reed gray",
		"#bc611e", "caramel",
		"#7b8d42", "grass green",
		"#719bad", "shadow blue",
		"#d04f97", "cyclamen pink",
		"#cbd0d3", "sky gray",
		"#f6b483", "sunset",
		"#9cbb1c", "spring green",
		"#00a1e9", "cyan",
		"#e4007f", "magenta",
		"#bcbace", "lavender gray",
		"#be8f68", "cinnamon",
		"#9fc24d", "leaf green",
		"#409ecc", "yacht blue",
		"#e62f8b", "bougainvillaea",
		"#c9caca", "silver",
		"#bf783e", "tan",
		"#f0f6da", "white lily",
		"#68a9cf", "chalk blue",
		"#c70067", "ruby",
		"#c9c9c4", "pearl gray",
		"#e9dacb", "champagne",
		"#dbebc4", "asparagus green",
		"#88b5d3", "pigeon blue",
		"#941f57", "claret",
		"#c9c9c2", "sand gray",
		"#fbd8b5", "peach",
		"#618e34", "citron green",
		"#a4c1d7", "smoke blue",
		"#d83473", "azalee",
		"#c0c5c2", "marble gray",
		"#946c45", "cafe au lait",
		"#65ab31", "meadow green",
		"#bbdbf3", "frosty blue",
		"#dc6b9a", "cosmos",
		"#bfbec5", "opal gray",
		"#ee7800", "orange",
		"#a7d28d", "apple green",
		"#006eb0", "bleu acide",
		"#de82a7", "lotus pink",
		"#8da0b6", "french gray",
		"#f7b977", "apricot",
		"#578a3d", "ivy green",
		"#0068b7", "cobalt blue",
		"#e3adc1", "old orchid",
		"#b4aeb1", "mist",
		"#c2894b", "amber",
		"#417038", "spinach green",
		"#0068b7", "sapphire blue",
		"#debecc", "rose mist",
		"#b5b5ae", "ash blond",
		"#ac6b25", "bronze",
		"#387d39", "cactus",
		"#0075c2", "spectrum blue",
		"#e5c1cd", "rose dragee",
		"#abb1b5", "fog",
		"#e8c59c", "vanilla",
		"#bee0c2", "sky green",
		"#0075c2", "blue",
		"#eb6ea0", "cherry pink",
		"#b4ada9", "beige gray",
		"#c49a6a", "cork",
		"#79c06e", "spearmint",
		"#4496d3", "zenith blue",
		"#e95388", "opera",
		"#afafb0", "silver gray",
		"#6f5436", "burnt umber",
		"#89c997", "mint green",
		"#68a4d9", "heavenly blue",
		"#ea618e", "rose red",
		"#aaaab0", "storm gray",
		"#866629", "raw umber",
		"#37a34a", "parrot green",
		"#bcc7d7", "orchid gray",
		"#b0778c", "old lilac",
		"#abb1ad", "green fog",
		"#fad09e", "flesh",
		"#009944", "summer green",
		"#bccddb", "powder blue",
		"#6e4a55", "cocoa",
		"#9fa09e", "ash gray",
		"#f6ae54", "golden yellow",
		"#bee0ce", "opal green",
		"#b2cbe4", "light blue",
		"#b33e5c", "wine red",
		"#9d8e87", "rose gray",
		"#f3981d", "mandarin orange",
		"#a4d5bd", "spray green",
		"#a2c2e6", "baby blue",
		"#942343", "garnet",
		"#9f9f98", "elephant skin",
		"#f39800", "marigold",
		"#004d25", "bottle green",
		"#a3b9e0", "day dream",
		"#c82c55", "cochineal red",
		"#898989", "battleship gray",
		"#f6e5cc", "ecru beige",
		"#3cb37a", "cobalt green",
		"#94adda", "salvia blue",
		"#e73562", "strawberry",
		"#898880", "stone gray",
		"#eae1cf", "oyster",
		"#00984f", "evergreen",
		"#7a99cf", "hyacinth blue",
		"#e73562", "ruby red",
		"#7e837f", "moss gray",
		"#ba8b40", "ochre",
		"#009854", "malachite green",
		"#6c9bd2", "hyacinth",
		"#d70035", "carmine",
		"#7d7b83", "dove gray",
		"#c5a05a", "khaki",
		"#00a960", "green",
		"#001e43", "midnight blue",
		"#e8383d", "signal red",
		"#7d7d7d", "gray",
		"#caac71", "buff",
		"#00a968", "emerald green",
		"#202f55", "navy blue",
		"#6c2735", "burgundy",
		"#736d71", "steel gray",
		"#fac559", "saffron yellow",
		"#288c66", "forest green",
		"#192f60", "prussian blue",
		"#6c272d", "bordeaux",
		"#666c67", "ivy gray",
		"#e5a323", "pumpkin",
		"#00885a", "viridian",
		"#192f60", "iron blue",
		"#da536e", "camellia",
		"#626063", "slate gray",
		"#c4972f", "yellow ocher",
		"#006948", "holly green",
		"#043c78", "indigo",
		"#e95464", "rose",
		"#594e52", "graphite",
		"#f2d58a", "blond",
		"#005c42", "billiard green",
		"#003f8e", "ink blue",
		"#f19ca7", "rose pink",
		"#4e454a", "charcoal gray",
		"#eedcb3", "beige",
		"#00533f", "chrome green",
		"#26499d", "oriental blue",
		"#f5b2b2", "pink",
		"#504946", "taupe",
		"#ead7a4", "biscuit",
		"#54917f", "antique green",
		"#4753a2", "ultramarine blue",
		"#f5b2ac", "flamingo pink",
		"#24140e", "lamp black",
		"#ffe9a9", "leghorn",
		"#a5c9c1", "water green",
		"#434da2", "ultramarine",
		"#e29399", "old rose",
		"#000000", "black"
	};
	public static String[] strColors = new String[]{
		"#fef4f4", "#96514d", "#e6b422", "#006e54", "#895b8a",
		"#fdeff2", "#8d6449", "#d9a62e", "#00a381", "#824880",
		"#e9dfe5", "#deb068", "#d3a243", "#38b48b", "#915c8b",
		"#e4d2d8", "#bf794e", "#c89932", "#00a497", "#9d5b8b",
		"#f6bfbc", "#bc763c", "#d0af4c", "#80aba9", "#7a4171",
		"#f5b1aa", "#b98c46", "#8b968d", "#5c9291", "#bc64a4",
		"#f5b199", "#b79b5b", "#6e7955", "#478384", "#b44c97",
		"#efab93", "#b77b57", "#767c6b", "#43676b", "#aa4c8f",
		"#f2a0a1", "#b68d4c", "#888e7e", "#80989b", "#cc7eb1",
		"#f0908d", "#ad7d4c", "#5a544b", "#2c4f54", "#cca6bf",
		"#ee827c", "#ad7d4c", "#56564b", "#1f3134", "#c4a3bf",
		"#f09199", "#ae7c4f", "#555647", "#47585c", "#e7e7eb",
		"#f4b3c2", "#ad7e4e", "#494a41", "#485859", "#dcd6d9",
		"#eebbcb", "#ae7c58", "#6b6f59", "#6c848d", "#d3cfd9",
		"#e8d3c7", "#a86f4c", "#474b42", "#53727d", "#d3ccd6",
		"#e8d3d1", "#946243", "#333631", "#5b7e91", "#c8c2c6",
		"#e6cde3", "#917347", "#5b6356", "#426579", "#a6a5c4",
		"#e5abbe", "#956f29", "#726250", "#4c6473", "#a69abd",
		"#e597b2", "#8c7042", "#9d896c", "#455765", "#a89dac",
		"#e198b4", "#7b6c3e", "#94846a", "#44617b", "#9790a4",
		"#e4ab9b", "#d8a373", "#897858", "#393f4c", "#9e8b8e",
		"#e09e87", "#cd8c5c", "#716246", "#393e4f", "#95859c",
		"#d69090", "#cd5e3c", "#cbb994", "#203744", "#95949a",
		"#d4acad", "#cb8347", "#d6c6af", "#4d4c61", "#71686c",
		"#c97586", "#c37854", "#bfa46f", "#eaf4fc", "#705b67",
		"#c099a0", "#c38743", "#9e9478", "#eaedf7", "#634950",
		"#b88884", "#c39143", "#a59564", "#e8ecef", "#5f414b",
		"#b48a76", "#bf783a", "#715c1f", "#ebf6f7", "#4f455c",
		"#a86965", "#bb5535", "#c7b370", "#c1e4e9", "#5a5359",
		"#a25768", "#bb5520", "#dcd3b2", "#bce2e8", "#594255",
		"#ec6d71", "#b55233", "#a19361", "#a2d7dd", "#524748",
		"#eb6ea5", "#aa4f37", "#8f8667", "#abced8", "#513743",
		"#e95295", "#9f563a", "#887938", "#a0d8ef", "#e6eae3",
		"#e7609e", "#9f563a", "#6a5d21", "#89c3eb", "#d4dcd6",
		"#d0576b", "#9a493f", "#918754", "#84a2d4", "#d4dcda",
		"#c85179", "#98623c", "#a69425", "#83ccd2", "#d3cbc6",
		"#e9546b", "#965042", "#ada250", "#84b9cb", "#c8c2be",
		"#e95464", "#965036", "#938b4b", "#698aab", "#b3ada0",
		"#c85554", "#95483f", "#8c8861", "#008899", "#a99e93",
		"#c53d43", "#954e2a", "#a1a46d", "#00a3af", "#a58f86",
		"#e83929", "#8f2e14", "#726d40", "#2a83a2", "#928178",
		"#e60033", "#8a3319", "#928c36", "#59b9c6", "#887f7a",
		"#e2041b", "#8a3b00", "#dccb18", "#2ca9e1", "#b4866b",
		"#d7003a", "#852e19", "#d7cf3a", "#38a1db", "#b28c6e",
		"#c9171e", "#7b4741", "#c5c56a", "#0095d9", "#a16d5d",
		"#d3381c", "#773c30", "#c3d825", "#0094c8", "#9f6f55",
		"#ce5242", "#783c1d", "#b8d200", "#2792c3", "#8c6450",
		"#d9333f", "#762f07", "#e0ebaf", "#007bbb", "#856859",
		"#b94047", "#752100", "#d8e698", "#5383c3", "#765c47",
		"#ba2636", "#6c3524", "#c7dc68", "#5a79ba", "#6f514c",
		"#b7282e", "#683f36", "#99ab4e", "#4c6cb3", "#6f4b3e",
		"#a73836", "#664032", "#7b8d42", "#3e62ad", "#544a47",
		"#9e3d3f", "#6d3c32", "#69821b", "#1e50a2", "#543f32",
		"#a22041", "#583822", "#aacf53", "#507ea4", "#554738",
		"#a22041", "#6c2c2f", "#b0ca71", "#19448e", "#433d3c",
		"#f8f4e6", "#640125", "#b9d08b", "#164a84", "#432f2f",
		"#ede4cd", "#f8b862", "#839b5c", "#165e83", "#3f312b",
		"#e9e4d4", "#f6ad49", "#cee4ae", "#274a78", "#302833",
		"#ebe1a9", "#f39800", "#82ae46", "#2a4073", "#ffffff",
		"#f2f2b0", "#f08300", "#a8c97f", "#223a70", "#fffffc",
		"#e4dc8a", "#ec6d51", "#9ba88d", "#192f60", "#f7fcfe",
		"#f8e58c", "#ee7948", "#c8d5bb", "#1c305c", "#f8fbf8",
		"#ddbb99", "#ed6d3d", "#c1d8ac", "#0f2350", "#fbfaf5",
		"#d7a98c", "#ec6800", "#a8bf93", "#17184b", "#f3f3f3",
		"#f2c9ac", "#ec6800", "#769164", "#0d0015", "#f3f3f2",
		"#fff1cf", "#ee7800", "#d6e9ca", "#bbc8e6", "#eae5e3",
		"#fddea5", "#eb6238", "#93ca76", "#bbbcde", "#e5e4e6",
		"#fce2c4", "#ea5506", "#93b881", "#8491c3", "#dcdddd",
		"#fde8d0", "#ea5506", "#badcad", "#8491c3", "#dddcd6",
		"#f9c89b", "#eb6101", "#97a791", "#4d5aaf", "#c0c6c9",
		"#f7bd8f", "#e49e61", "#98d98e", "#4d5aaf", "#afafb0",
		"#f6b894", "#e45e32", "#88cb7f", "#4a488e", "#adadad",
		"#f4dda5", "#e17b34", "#69b076", "#4d4398", "#a3a3a2",
		"#f1bf99", "#dd7a56", "#6b7b6e", "#5654a2", "#9ea1a3",
		"#f1bf99", "#db8449", "#bed2c3", "#706caa", "#9fa0a0",
		"#efcd9a", "#d66a35", "#93b69c", "#68699b", "#949495",
		"#efcd9a", "#ffd900", "#a6c8b2", "#867ba9", "#888084",
		"#f0cfa0", "#ffd900", "#47885e", "#dbd0e6", "#7d7d7d",
		"#edd3a1", "#ffea00", "#316745", "#a59aca", "#7b7c7d",
		"#e0c38c", "#ffec47", "#68be8d", "#7058a3", "#727171",
		"#f3bf88", "#fef263", "#3eb370", "#674598", "#595857",
		"#f7b977", "#fcd575", "#007b43", "#674196", "#595455",
		"#f19072", "#fbd26b", "#bed3ca", "#9079ad", "#524e4d",
		"#f19072", "#f5e56b", "#92b5a9", "#745399", "#474a4d",
		"#ee836f", "#eec362", "#7ebea5", "#65318e", "#383c3c",
		"#eb9b6f", "#ebd842", "#7ebeab", "#522f60", "#2b2b2b",
		"#e0815e", "#ffdb4f", "#028760", "#493759", "#2b2b2b",
		"#df7163", "#fbca4d", "#3b7960", "#2e2930", "#180614",
		"#d57c6b", "#fcc800", "#2f5d50", "#884898", "#281a14",
		"#d0826c", "#f8b500", "#3a5b52", "#c0a2c7", "#000b00",
		"#ca8269", "#fabf14", "#475950", "#460e44", "#250d00",
		"#bb5548", "#f7c114", "#00552e", "#74325c", "#241a08",
		"#ab6953", "#e6b422", "#005243", "#55295b", "#16160e",
	};
	
	public static int[] colorsSet2 = null;
	
	public static int[] colorsSet1 = null;
	static{
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i<5; i++){
			for(int j = 0; j<strColors.length/5; j++){
				int c = Long.decode(strColors[j*5+i]).intValue();
				if(ColorLib.red(c)+ColorLib.green(c)+ColorLib.blue(c)<600){
					list.add(c);
				}
			}
		}
		colorsSet1 = new int[list.size()];
		for(int i = 0; i<list.size(); i++){
			colorsSet1[i] = list.get(i); 
		}
	}
}